﻿<%@ Page Title="" Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="XiaoXiang.aspx.cs" Inherits="aspnet_testPargrameDir_site_Member_Admin_XiaoXiang" %>
<%@ Register Assembly="web表单验证控件" Namespace="CheckForm" TagPrefix="cc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc2" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    &nbsp;
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="4" style="height: 30px"><strong>选择学生</strong></td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" style="height: 27px">提示信息:<asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label>
            </td>
            <td class="tdbg" style="height: 27px">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </td>
            <td class="tdbg" style="height: 27px">&nbsp;</td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">输入会员号</td>
            <td class="tdbg" style="height: 27px; ">

                <cc1:FormValidation ID="stuid" runat="server" CssClass="alpha" datatype="Require" 
                    Width="100px" 是否验试="验试" MaxLength="50"></cc1:FormValidation>
            </td>

            <td class="tdbg" style="height: 27px; ">
                选择班级<asp:DropDownList ID="banji" runat="server">
                    <asp:ListItem></asp:ListItem>

                </asp:DropDownList>
            </td>

            <td class="tdbg" style="height: 27px; ">
                选择日期<asp:TextBox ID="txtdate" runat="server"></asp:TextBox>
                <cc2:CalendarExtender ID="txtdate_CalendarExtender" runat="server" Enabled="True" TargetControlID="txtdate" Format="yyyy-MM-dd">
                </cc2:CalendarExtender>
            </td>

        </tr>
        <tr>
            <td class="tdbg" colspan="2" style="height: 27px">
                <center>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="确定" Height="21px" Width="126px" />
                </center>
            </td>
            <td class="tdbg" style="height: 27px">

                <asp:HyperLink ID="info" CssClass="error" runat="server" Target="_blank"  Height="40"></asp:HyperLink>

            </td>
            <td class="tdbg" style="height: 27px">
                &nbsp;</td>
        </tr>
    </table>
    <br />
    
  <table width="100%" height="62" border="0" align="center" cellpadding="2" cellspacing="1"class="border">



  <tr align="center">
    <td width="11%" valign="middle" class="topbg" style="height: 30px"><strong>信息编号</strong></td>
    <td width="32%" valign="middle" class="topbg" style="height: 30px"><strong>学生姓名</strong></td>
    <td width="28%" valign="middle" class="topbg" style="height: 30px"><strong>发表时间</strong></td>
    <td width="15%" valign="middle" class="topbg" style="height: 30px"><strong>所在班级</strong></td>
    <td width="14%" valign="middle" class="topbg" style="height: 30px"><strong>操作</strong></td>
  </tr>
  
  
<!-- 这里开始 显示表数据 -->

      <asp:Repeater ID="Records" runat="server">
          <ItemTemplate>
    <tr>
        <td align="center" class='tdbg' style='height: 27px'><%#Eval("自动编号") %></strong></td>
        <td align="left" class='tdbg' style='height: 27px'> <a  target="_blank" href='<%#"show.aspx?stid=" + Eval("学号") %>&d=<%#Server.UrlEncode(((DateTime)Eval("评语日期")).ToString("yyyy-MM-dd")) %>&s=<%#Server.UrlEncode( Eval("班级名称") as string) %>' class='link1' ><%#Eval("姓名") %> </a></td>
        <td align="left" class='tdbg' style='height: 27px'><%#((DateTime)Eval("评语日期")).ToString("yyyy-MM-dd") %></td>
        <td align="center" class='tdbg' style='height: 27px'><%#Eval("班级名称") %></td>
        <td align="left" class='tdbg' style='height: 27px'><a  target="_blank" href='<%#"show.aspx?stid=" + Eval("学号") %>&d=<%#Server.UrlEncode(((DateTime)Eval("评语日期")).ToString("yyyy-MM-dd")) %>&s=<%#Server.UrlEncode( Eval("班级名称") as string) %>' class='link1' >编辑 <%#Eval("姓名") %> <%#((DateTime)Eval("评语日期")).ToString("yyyy-MM-dd") %>评语 </a>   &nbsp;  &nbsp;   &nbsp;  &nbsp; 
            <%--<a href="javascript:Del('Del.aspx?id=<%#Eval("自动编号") %>',' <%#Eval("姓名").ToString().Replace("'","&#39;") %> <%#Eval("评语日期") %>评语');" class='link'>  删除   </a>--%>
            <asp:LinkButton ID="LinkButton1" ToolTip='<%#Eval("自动编号") %>'  OnClientClick='return ConfDel(this)' OnClick="LinkButton1_Click"  runat="server">  删除   </asp:LinkButton>

        </td>
    </tr>
          </ItemTemplate>
      </asp:Repeater>
  
<!-- 显示表数据结束 -->   
</table>
    <br />
    <div  align="center">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="31"  OnPageChanged="AspNetPager1_PageChanged" >
        </webdiyer:AspNetPager>
    </div>
    <script type="text/javascript">

        function ConfDel()
        {
           return confirm("此操作不可恢复\r\n确定删除数据吗？");

        }

    </script>
</asp:Content>

